how to find out the memory size of array